<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>插入图片</title>
</head>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<script>
   function handleSumbit(){
      if(isblank(document.form1.imgfile)){
         alert("请选择图片");
      }else{
         document.form1.action = context + "/app/infoimg.do?method=insertimg";
         document.form1.submit();
      }
   }
</script>
<form name="form1" method="post" enctype="multipart/form-data" action="">
<table width="98%" class="tab-noborder" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>选择图片</td>
  </tr>
  <tr><td><input type="file" name="imgfile" style="width:300px;" value=""/></td></tr>
 </table> 
 <br>
  <div align="center">
<input type="button" value=" 提 交 " class="button0" onclick="javascript:handleSumbit();">
<input type="button" value=" 取 消 " class="button0" onclick="javascript:window.close();">
</div>
  </form>
</body>
</html>